Creates a new instance of the LearningStoreXml class and loads some XML data into it.
Parent Type: LearningStoreXml
Namespace: Microsoft.LearningComponents.Storage
Assembly: Microsoft.LearningComponents.Storage.dll
| C# |
|
public static LearningStoreXml CreateAndLoad ( ) |
reader
System.Xml.XmlReader containing the XML data to be read into the object.
A new LearningStoreXml
| Exception type | Condition |
| ArgumentNullException | reader is a null reference. |
The following code creates a LearningStoreXml object from an XmlDocument:
| C# |
XmlNodeReader reader = new XmlNodeReader(document); LearningStoreXml xml = LearningStoreXml.CreateAndLoad(reader); |